package com.jumi.microservice.controller;


import com.jumi.microservice.common.base.BaseController;
import com.jumi.microservice.dto.wallet.api.WalletUserRequest;
import com.jumi.microservice.service.admin.WalletAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.math.BigDecimal;


/**
 * @author by mazhao
 * @Classname WalletUserController
 * @Description TODO
 * @Date 2020/7/22 10:47
 */
@Api(tags = {"钱包用户相关接口"})
@RestController
@RequestMapping("/wallet/user")
public class WalletUserController extends BaseController {

    @Resource
    private WalletAccountService walletAccountService;

    @PostMapping("/waitCash")
    @ApiOperation("用户可提现金额")
    public BigDecimal waitCash(WalletUserRequest request) {
        return walletAccountService.waitCash(request);
    }


}

